home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / system-config-printer / troubleshoot / ServerFirewalled.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2009-10-28  |  2KB  |  32 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from base import *
  5.  
  6. class ServerFirewalled(Question):
  7.     
  8.     def __init__(self, troubleshooter):
  9.         Question.__init__(self, troubleshooter, 'Server firewalled')
  10.         page = self.initial_vbox(_('Check Server Firewall'), _('It is not possible to connect to the server.'))
  11.         self.label = gtk.Label()
  12.         self.label.set_alignment(0, 0)
  13.         self.label.set_line_wrap(True)
  14.         page.pack_start(self.label, False, False, 0)
  15.         troubleshooter.new_page(page, self)
  16.  
  17.     
  18.     def display(self):
  19.         answers = self.troubleshooter.answers
  20.         if not answers['cups_queue_listed']:
  21.             return False
  22.         if answers.has_key('remote_server_connect_ipp') and answers['remote_server_connect_ipp'] == False:
  23.             self.label.set_text(_("Please check to see if a firewall or router configuration is blocking TCP port %d on server '%s'.") % (answers['remote_server_port'], answers['remote_server_try_connect']))
  24.             return True
  25.         return False
  26.  
  27.     
  28.     def can_click_forward(self):
  29.         return False
  30.  
  31.  
  32.